//
//  secondViewController.m
//  Dice
//
//  Created by iD Student on 6/26/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "secondViewController.h"

@interface secondViewController ()

@end

@implementation secondViewController
@synthesize diceImage;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
-(IBAction)rollDice:(id)sender{
    switch (num) {
        case 0:
            [diceImage setImage:[UIImage imageNamed:@"1Dice.jpg"]];
            break;
        case 1:
            [diceImage setImage:[UIImage imageNamed:@"2Dice.jpg"]];
            break;
        case 2:
            [diceImage setImage:[UIImage imageNamed:@"3Dice.jpg"]];
            break;
        case 3:
            [diceImage setImage:[UIImage imageNamed:@"4Dice.jpg"]];
            break;
        case 4:
            [diceImage setImage:[UIImage imageNamed:@"5Dice.jpg"]];
            break;
        case 5:
            [diceImage setImage:[UIImage imageNamed:@"6Dice.jpg"]];
            break;
    }
}
-(IBAction)showDice:(id)sender{
    
}
@end
